package cn.hehuoren.quartz.dao;

import cn.hehuoren.quartz.model.QrtzJobRunLog;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QrtzJobRunLogMapper {
	int insert(QrtzJobRunLog qrtzJobRunLog);
	
	List<QrtzJobRunLog> select(@Param("start") Integer start,
                               @Param("num") Integer num,
                               @Param("id") String id,
                               @Param("jobName") String jobName,
                               @Param("jobGroup") String jobGroup,
                               @Param("runResultCode") String runResultCode);

	QrtzJobRunLog  getByKey(@Param("id") String id, @Param("jobName") String jobName,
                            @Param("jobGroup") String jobGroup, @Param("currentDate") String currentDate);

	int getTotal(
            @Param("id") String id,
            @Param("jobName") String jobName,
            @Param("jobGroup") String jobGroup,
            @Param("runResultCode") String runResultCode);
	
	List<QrtzJobRunLog> selectQuartzJobRunLogPage(QrtzJobRunLog qrtzJobRunLog, PageBounds pageBounds);
}
